<?php echo $header_home; ?>
<!-- End header -->

<!-- Begin content --> 
            <div id="main" class="p13t" style="padding-top:30px;">
                <div id="sidebar">
                    <!--Category-->
                    <div id="prdCategory">
                        <h1 class="tt-h1"><img src="catalog/view/theme/<?php echo $template; ?>/images/text_kategori.png" alt="kategori" /></h1>
                         <div id="search">
                            <form id="searchForm1" method="post" action="<?php echo $search_url; ?>">
                                <fieldset>
                                    <input id="search_value1" class="input-txt" type="text" name="keyword" value="Søg produkt..." title="Søg produkt..." />
                                    <a class="search-submit" title="Søg" onclick="searchProduct();">Søg</a>
                                </fieldset>
                            </form>
                        </div>
                        <ul id="vmenu" class="cat-list">                            
                            <?php foreach($categories as $category){ ?>  
                                <li>  
                                    <a href="<?php echo $category['href']; ?>">
                                        <span class="title"><?php echo $category['name']; ?></span>                                        
                                    </a> 
                                    <?php if(!empty($category['children'])){ ?>
                                        <ul class="sub">
                                            <?php foreach($category['children'] as $child_item){ ?> 
                                                <li><a href="<?php echo $child_item['href']; ?>"><?php echo $child_item['name']; ?></a></li>
                                            <?php } ?>
                                        </ul>         
                                    <?php } ?>                                   
                                </li>                                
                            <?php } ?>                             
                        </ul> 
                    </div>
                    <!-- /Category-->                    
					<div class="giftcard_link">
						<h1><a href="<?php echo $giftcard_link; ?>">Køb et gavekort<br /> Tryk her ></a></h1>	
					</div>					
                    <!--Kunder Services-->
                    <div id="kundeService">
                        <?php echo $customer_service; ?> 
                        <div><img src="catalog/view/theme/<?php echo $template; ?>/images/kundeservice_bottom.png" /></div>
                    </div>
                    <!--/Kunder Services-->
					<!--
					<div class="p10t">
						<a target="_blank" href="http://www.trustpilot.dk/review/havhokeren.dk">
							<img src="catalog/view/theme/<?php echo $template; ?>/images/trustpilot.png" alt="" />
						</a>
					</div>
					-->
					<div class="p10t">
						<div class="fb-like-box fb-box-home" data-href="https://www.facebook.com/Havhokeren" data-height="265" data-width="237" data-show-border="false" data-show-faces="true" data-stream="false" data-header="false"></div>
						<!-- div class="fb-like-box" data-href="http://www.facebook.com/Havhokeren" data-width="185" data-height="268" data-show-faces="true" data-stream="false" data-header="false"></div -->
					</div>
                </div>                  
                <div id="content" class="with-sidebar">
                    <div class="inner">
                    	<div id="rabatContent" style="display:none;">
                            <div class="rabat-content-inner">
                                <div class="welcome-content float_left">
                                    <?php echo $welcome['text']; ?>  
                                    <!-- a class="learn-more-btn" href="<?php echo $welcome['href']; ?>">Læs mere</a -->
                                </div>
                                <div class="newsletter-form float_right" >
                                	<div class="newsletter-inner">
                                        <?php if(isset($use_flash_video)){ ?>
                                            <div id="video_player_welcome" style="display:block;height:220px;width:320px;" rel="<?php echo $welcome_video ?>"/></div>
                                        <?php }elseif(1==0){ ?>
                                            <iframe width="340" height="220" src="http://www.youtube.com/embed/nSM_5DmGjgA?rel=0&fs=0&autohide=1&showinfo=0&autoplay=1" frameborder="0" allowfullscreen="false"></iframe>
                                            <iframe width="340" height="220" src="http://www.youtube.com/embed/nSM_5DmGjgA?rel=0&fs=0" frameborder="0" allowfullscreen="false"></iframe>
                                        <?php }else{ ?>
                                            <?php echo $newsletter_home; ?>	
                                        <?php } ?>
                                	</div>
                                </div>
                                <br class="cb" />
                            </div>
                        </div>  
                        <!-- Begin product list  -->
                        <?php echo $product; ?>
                    </div>
                </div>  
			</div>
        </div>
    </div>
    <div id="footerNav">
       <div class="footer-inner-home">
            <div class="footer_cnt">
				<?php if(1==0){ ?>
					<div class="social">
						<?php echo $newsletter_home; ?>
						<div class="fb">
							<h2>Mød os på</h2>
							<a target="_blank" href="http://www.facebook.com/#!/pages/Gilleleje-Denmark/Havhokeren/120681221280479"><img src="catalog/view/theme/<?php echo $template; ?>/images/fb_btn.png" alt="Facebook" /></a>
							<a target="_blank" href="https://twitter.com/#!/havhokeren"><img src="catalog/view/theme/<?php echo $template; ?>/images/icon-twitter.png" alt="Twitter" /></a>
						</div>
					</div>
				<?php } ?>
                <div id="prdBrands">
                    <a class="prev txt-hidden" href="#">Forrige</a>
                    <div id="slider_home">
                        <ul id="parent">
                            <?php $m_item = 1; ?>
                            <?php foreach($manufacturers as $manufacturer){ ?> 
                                <li class="item<?php echo $m_item; ?>">
                                    <a href="<?php echo $manufacturer['href']; ?>">
                                        <img src="<?php echo $manufacturer['image']; ?>" alt="<?php echo $manufacturer['name']; ?>" />
                                    </a>
                                </li>                            
                                <?php $m_item = $m_item % 6 + 1; ?>
                            <?php } ?> 
                        </ul>
                    </div>
                    <a class="next txt-hidden" href="#">Næste</a>
                </div>
                <div class="footer-menu-ctn">                 
                    <?php $c_count = 0; $total_count = count($content_categories) - 1; ?>
                    <?php foreach($content_categories as $content_category){ ?>
                        <?php $first = $c_count == 0 ? 'first' : ''; ?>
                        <div class="menu-col <?php echo $first; ?>"> 
                            <h4><?php echo $content_category['name']; ?></h4>                        
                            <ul>
                                <?php foreach($content_category['children'] as $child){ ?>
                                    <li><a href="<?php echo $child['href']; ?>" <?php echo $child['link_location'] == 'new_tab' ? 'target="_blank"' : ''; ?>><?php echo $child['name']; ?></a></li>                            
                                <?php } ?>
                            </ul>
							
							<?php if($c_count == $total_count){ ?>
								<div class="social_home">
									<h4>Mød os på</h4>
									<a target="_blank" href="http://www.facebook.com/#%21/pages/Gilleleje-Denmark/Havhokeren/120681221280479"><img src="catalog/view/theme/<?php echo $template; ?>/images/fb_btn_home.png" alt="Facebook"></a>
									<a target="_blank" href="https://twitter.com/#%21/havhokeren"><img src="catalog/view/theme/<?php echo $template; ?>/images/icon_twitter_home.png" alt="Twitter"></a>
									<a target="_blank" href="http://www.youtube.com/watch?v=nSM_5DmGjgA&feature=player_embedded"><img src="catalog/view/theme/<?php echo $template; ?>/images/youtube_home.png" alt="youtube"></a>
								</div>
							<?php } ?>
                        </div>
                        <?php $c_count++; ?>
                    <?php } ?> 
                </div>
                <div id="footer" class="top-gap-10">
					<p style="display:none; visibility: hidden;"><?php echo $search_keywords ?></p> 
                    <p class="top-gap-p">
                        <span class="float_left"><?php echo $text_powered_by; ?></span>
                        <span class="float_right">Design by<a href="http://www.mywebcreations.dk/" target="_blank"> My Web Creations</a></span>
                        <br class="cb" />
                    </p>
                </div>
            </div>
        </div>
    </div>
    <div class="totop">
        <div class="ctn"><a href="#top">TIL TOP</a></div>
    </div>
</div>
<div id="search_overlay"><div class="search_inner"><img src="catalog/view/theme/<?php echo $template; ?>/images/ajax_load_red.gif" /></div></div>

<script type="text/javascript" src="catalog/view/theme/<?php echo $template; ?>/js/list_images.js"></script>
<script type="text/javascript" src="catalog/view/theme/<?php echo $template; ?>/js/jquery.jcarousel.js"></script>
<script type="text/javascript" src="catalog/view/theme/<?php echo $template; ?>/js/crawler.js" ></script>
<script type="text/javascript" src="catalog/view/theme/<?php echo $template; ?>/js/havh.js" ></script>
<?php if(isset($use_flash_banner)){ ?>
    <script type="text/javascript" src="catalog/view/theme/<?php echo $template; ?>/js/swfobject_modified.js" ></script>         
    <script type="text/javascript">
        // JAVASCRIPT VARS
        // cache buster
        var cacheBuster = "?t=" + Date.parse(new Date());        
        
        // stage dimensions
        var stageW = "748";
        var stageH = "286";
        
        // ATTRIBUTES
        var attributes = {};
        attributes.id = 'havhShow';
        attributes.name = attributes.id;
        
        // PARAMS
        var params = {};
        params.bgcolor = "#e1f5ff";
        params.wmode = "opaque";
        
        /* FLASH VARS */
        var flashvars = {};                
            
        /* DATA */
        flashvars.pathToFiles = "";
        flashvars.xmlPath = "<?php echo $flash_url; ?>";                        
        
        /** EMBED THE SWF**/
        swfobject.embedSWF("catalog/view/theme/<?php echo $template; ?>/swf/preview.swf"+cacheBuster, attributes.id, stageW, stageH, "9.0.124", "catalog/view/theme/<?php echo $template; ?>/js/expressInstall.swf", flashvars, params);
    </script> 
<?php }else{ ?>
    <script type="text/javascript" src="catalog/view/theme/<?php echo $template; ?>/js/jquery.nivo.slider.pack.js"></script>
    <script type="text/javascript">
        (function($) {       
            $(window).load(function() {
                $('#slideShow').nivoSlider({
                    effect:'fade',
                    pauseTime:5000,
                    pauseOnHover:true,
                    directionNavHide:true
                });
            });       
        })(jQuery);
    </script>
<?php } ?>   
<script type="text/javascript">
    $(function(){                      
    //$(document).ready(function() {
        $("#prdBrands").jCarouselLite({        
            btnNext: ".next",
            btnPrev: ".prev",
            visible : 5,
            scroll: 1,
            auto: 900,
            speed : 400            
        });                        
    });
</script>
<?php if(isset($use_flash_video)){ ?>
	<script type="text/javascript" src="catalog/view/theme/<?php echo $template; ?>/js/flowplayer-3.2.6.min.js"></script>
	<script type="text/javascript"> 
		flowplayer(
			"video_player_welcome", 
			"catalog/view/theme/<?php echo $template; ?>/swf/flowplayer-3.2.7.swf",
			{
				clip: {
					url: '<?php echo $welcome_video ?>',
					autoPlay: true,
					autoBuffering: true
				},
				play: {
					replay: true,
					label: null,
					replayLabel: "Klik for at spille igen"
				}
			}
		);	
	</script>
<?php } ?>

<script type="text/javascript">
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
 
  
  ga('create', 'UA-50043815-1', 'havhokeren.dk');
  ga('send', 'pageview');
</script>

<script type="text/javascript"> (function() { var gms = document.createElement('script'); gms.type = 'text/javascript'; if(typeof(gms.async) != "undefined"){gms.async = true;} var p = (window.location.protocol == 'https'); gms.src = (p ? 'https://www.' : 'http://cdn.') + 'addwish.com/scripts/company/awAddGift.js#D36A5E0C6FD706AF094D9CE7FB1B91AE'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(gms, s); })(); </script>
</body>
</html>